package com.ruoyi.article.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 博客文章对象 sys_article
 * 
 * @author zzzyh
 * @date 2025-09-12
 */
public class SysArticle extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 文章id */
    private Long id;

    public String getAuthorName() {
        return authorName;
    }

    public void setAuthorName(String authorName) {
        this.authorName = authorName;
    }

    /** 作者 */
    @Excel(name = "作者")
    private Long userId;

    /** 作者 */
    @Excel(name = "作者名称")
    private String authorName;

    /** 分类 */
    @Excel(name = "分类")
    private Long categoryId;

    /** 文章标题 */
    @Excel(name = "文章标题")
    private String title;

    /** 文章封面 */
    @Excel(name = "文章封面")
    private String cover;

    /** 文章简介 */
    @Excel(name = "文章简介")
    private String summary;

    /** 文章内容 */
    private String content;

    /** 文章内容md格式 */
    private String contentMd;

    /** 阅读方式 */
    private Long readType;

    /** 是否置顶 */
    @Excel(name = "是否置顶")
    private Long isStick;

    /** 状态 */
    private Long status;

    /** 是否原创 */
    private Long isOriginal;

    /** 是否首页轮播 */
    @Excel(name = "是否首页轮播")
    private Long isCarousel;

    /** 是否推荐 */
    @Excel(name = "是否推荐")
    private Long isRecommend;

    /** 转载地址 */
    private String originalUrl;

    /** 文章阅读量 */
    @Excel(name = "文章阅读量")
    private Long quantity;

    /** 关键词 */
    private String keywords;

    /** Ai生成的简短描述 */
    private String aiDescribe;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    public void setCategoryId(Long categoryId) 
    {
        this.categoryId = categoryId;
    }

    public Long getCategoryId() 
    {
        return categoryId;
    }

    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }

    public void setCover(String cover) 
    {
        this.cover = cover;
    }

    public String getCover() 
    {
        return cover;
    }

    public void setSummary(String summary) 
    {
        this.summary = summary;
    }

    public String getSummary() 
    {
        return summary;
    }

    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }

    public void setContentMd(String contentMd) 
    {
        this.contentMd = contentMd;
    }

    public String getContentMd() 
    {
        return contentMd;
    }

    public void setReadType(Long readType) 
    {
        this.readType = readType;
    }

    public Long getReadType() 
    {
        return readType;
    }

    public void setIsStick(Long isStick) 
    {
        this.isStick = isStick;
    }

    public Long getIsStick() 
    {
        return isStick;
    }

    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }

    public void setIsOriginal(Long isOriginal) 
    {
        this.isOriginal = isOriginal;
    }

    public Long getIsOriginal() 
    {
        return isOriginal;
    }

    public void setIsCarousel(Long isCarousel) 
    {
        this.isCarousel = isCarousel;
    }

    public Long getIsCarousel() 
    {
        return isCarousel;
    }

    public void setIsRecommend(Long isRecommend) 
    {
        this.isRecommend = isRecommend;
    }

    public Long getIsRecommend() 
    {
        return isRecommend;
    }

    public void setOriginalUrl(String originalUrl) 
    {
        this.originalUrl = originalUrl;
    }

    public String getOriginalUrl() 
    {
        return originalUrl;
    }

    public void setQuantity(Long quantity) 
    {
        this.quantity = quantity;
    }

    public Long getQuantity() 
    {
        return quantity;
    }

    public void setKeywords(String keywords) 
    {
        this.keywords = keywords;
    }

    public String getKeywords() 
    {
        return keywords;
    }

    public void setAiDescribe(String aiDescribe) 
    {
        this.aiDescribe = aiDescribe;
    }

    public String getAiDescribe() 
    {
        return aiDescribe;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("categoryId", getCategoryId())
            .append("title", getTitle())
            .append("cover", getCover())
            .append("summary", getSummary())
            .append("content", getContent())
            .append("contentMd", getContentMd())
            .append("readType", getReadType())
            .append("isStick", getIsStick())
            .append("status", getStatus())
            .append("isOriginal", getIsOriginal())
            .append("isCarousel", getIsCarousel())
            .append("isRecommend", getIsRecommend())
            .append("originalUrl", getOriginalUrl())
            .append("quantity", getQuantity())
            .append("keywords", getKeywords())
            .append("aiDescribe", getAiDescribe())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
